<template>
	<div>
		<!-- 分页，添加在div里面 -->
		<el-pagination
		@size-change="handleSizeChange"
		@current-change="handleCurrentChange"
		:current-page="pageMessage.currentPage"
		:page-sizes="[10, 20, 50,100,300,500,1000]"
		:page-size="pageMessage.pageSize"
		layout="total, sizes, prev, pager, next, jumper"
		:total="totalCounts">
		</el-pagination>
	</div>
</template>

<script>
	export default{
		data(){
			return{
			}
			
		},
		props:[
			'pageMessage',
			'totalCounts'
		],
		methods:{
			handleSizeChange(val) {
				this.$emit('fathermethod',val,"1");
			},
			handleCurrentChange(val) {
				this.$emit('fathermethod',val,"2");
			}
		}
	}
</script>

<style>
</style>
